Skip to content

Conversation

@Vladislav-Denisov
Copy link
Contributor

No description provided.

Copy link
Contributor

@valentina-kustikova valentina-kustikova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vladislav-Denisov, посмотрела код, написала небольшие комментарии. Надо еще отследить, что проверка стиля кодирования везде проходит.


def load_iree_model(vmfb_buffer):
try:
config = ireert.Config('local-task')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'local-task' - единственное возможное значение параметра функции? Не понятно, имеет ли смысл выносить в константы или параметры.

Copy link
Contributor Author

@Vladislav-Denisov Vladislav-Denisov Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все доступные варианты помимо local-task описаны в табличке здесь
Я захардкодил, потому что пока что рассматривал только запуск на CPU.

self._model_path = args.model

def get_input_layer_names(self, model):
return ['input']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А здесь точно для всех моделей одинаковое название входного слоя будет? Надо подумать, но скорее всего название входного слоя придется отдавать через параметры.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для IREE на самом деле не требуется наименование входного слоя.
Он использует наименование функции, в скомпилированном модуле, которую потребуется исполнить https://github.com/Vladislav-Denisov/dl-benchmark/blob/70526453d3c0421d93746556507e7c6096ed0cbf/src/inference/inference_iree.py#L59

Входной слой захардкожен, потому что он требуется для некоторых методов IOAdapter

@Vladislav-Denisov Vladislav-Denisov force-pushed the feat/iree branch 2 times, most recently from 4192375 to 40cfd33 Compare November 18, 2025 16:47
@Vladislav-Denisov Vladislav-Denisov marked this pull request as ready for review November 22, 2025 15:46
@Vladislav-Denisov Vladislav-Denisov changed the title [IREE] [InProgress] Inference [IREE] Inference & Benchmark Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants